<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="https://cdn.bootcdn.net/ajax/libs/normalize/8.0.1/normalize.min.css" rel="stylesheet">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.12.4/jquery.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.js"></script>
    <script src="../js/main.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/exammange.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/data/permissionList.data.js"></script>
    <script src="../js/permissionlist.js"></script>
    <script src="http://www.wywywy.cn/oth/jquerysession.js"></script>
    <link rel="stylesheet" type="text/css" href="../css/main.css"/>
    <link rel="stylesheet" type="text/css" href="../css/nav.css"/>
    <link rel="stylesheet" type="text/css" href="../css/exam-manage.css"/>
    <title>后台管理</title>
    <style>
        .title_img{
            max-width: 130px;
            max-height: 30px;
        }
        #permissionList{
            z-index: 2;
            color: #fff;
            background-color: #337ab7;
            border-color: #337ab7;
        }
        #data-list div{
            padding: 0 10px;
            border: 1px solid rgba(0,0,0,.1);
            /*height: 42px;*/
            cursor: pointer;
        }
        .QX_group:hover,.ZQX_group:hover{
            z-index: 2;
            color: #fff;
            background-color: #337ab7;
            border-color: #337ab7;
            -webkit-transition: all .2s;
            -moz-transition: all .2s;
            -ms-transition: all .2s;
            -o-transition: all .2s;
            transition: all .2s;
        }
        #data-list span,#data-list i{
            margin: 11px 3px;
        }
        .title_sed_perm,.title_perm{
            padding-left:    10px;
            border: 0!important;
        }
        .QX_data .fa,.QX_data label{
                margin: 0 10px;
        }
        #per_List,#add_per{cursor: pointer;}
        .QX_data_dus{color: goldenrod}
        .modal .col-sm-2{
            padding: 7px 15px 0 15px;
        }
    </style>
    <script>

    </script>
</head>
<body>
<div class="container"  id="app">
    <div class="nav navbar navbar-default">
        <span class="fl nav-logo">考试系统后台管理平台</span>
        <span class="fl nav-scool" id="bk_school_name"></span>
        <span class="fr nav-user" >
            	<li id="is_login" class="dropdown hide">
                    <a id="bk_user_name" class="dropdown-toggle" data-toggle="dropdown" href="#">
                         <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="usermanger.html">修改个人资料</a></li>
                        <li><a href="" id="out_login_user">退出登录</a></li>
                    </ul>
                </li>
                <li id="not_login" class="bk_user_name_unlogin "><a href="login.html">请登录</a></li>
            <i class="icon"></i>
        </span>

    </div>
    <div class="col-sm-2" id="listitem">
        <div class="list-group" id="pager_group">

        </div>
    </div>
    <div class="col-sm-10" style="height: 100%;">
        <div class="col-sm-2 role_class_list">
            <div class="role_class_title">角色列表</div>
            <button data-toggle="modal" href="#add_class_modify" id="add_role_class" type="button" class="btn btn-primary" style="margin: 0 auto;width: 100%;">新增角色</button>
            <div class="role_class" id="role_list">

            </div>
        </div>
        <div class="col-sm-10" id="exam-main">
            <div class="">
                <ul class="nav nav-tabs ">
                    <li class="exam-list-nav active" id="per_List"><a>权限列表</a></li>
                    <li class="exam-list-nav " id="add_per"><a>添加权限</a></li>
                </ul>
            </div>
            <div class="exam-list ">
                <div class="">
                    <form class="form-inline" id="flxe-test" role="form" style="display: block">
                        <button type="button" id="save_primary" class="btn btn-primary">保存权限关系</button>
                    </form>
                </div>
                <div class="permission" id="data-list">
                </div>
            </div>
            <div class="add-exam hide">
                <form class="form-horizontal" role="form">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">权限名称(name)</label>
                        <div class="col-sm-4">
                            <input id="role_name" type="text" class="form-control" placeholder="">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">权限图标(icon)</label>
                        <div class="col-sm-4">
                            <input id="role_icon" type="text" class="form-control" placeholder="">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">权限值(permission)</label>
                        <div class="col-sm-4">
                            <input id="role_permission" type="text" class="form-control" placeholder="">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">权限地址(url)</label>
                        <div class="col-sm-4">
                            <input  id="role_url" type="text" class="form-control" placeholder="">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">父权限id(pid)</label>
                        <div class="col-sm-4">
                            <input  id="role_pid" type="text" class="form-control" placeholder="">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">排序id(sn)</label>
                        <div class="col-sm-4">
                            <input  id="role_sn" type="text" class="form-control" placeholder="">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">是否是菜单(isMenu 1=是 0=否)</label>
                        <div class="col-sm-4">
                            <select id="role_label" class="form-control">
                                <option value="1" id="is_title">是</option>
                                <option value="0" id="not_title">否</option>
                            </select>
                        </div>

                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button id="save_role" type="button" class="btn btn-primary">保存</button>
                            <button type="button" class="btn btn-default">返回</button>
                        </div>
                    </div>
                </form>

            </div>
        </div>
    </div>
</div>
<!-- 模态框 -->
<div class="modal fade" id="modify" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">修改权限</h4>
            </div>
            <div class="modal-body">
                <form class="form-inline revise-modify" role="form">
                    <div id="number-modify">
                        <span>
                            <span class="show-inf-title">编号</span>
                            <textarea id="sn-modify" class="form-control input-typetext"></textarea>
                        </span>
                        <span>
                            <span class="show-inf-title">题干</span>
                              <textarea id="yw-modify" class="form-control input-typetext"></textarea>
                        </span>
                        <span>
                            <span class="show-inf-title">年级</span>
                            <textarea id="yy-modify" class="form-control input-typetext"></textarea>
                        </span>
                        <span>
                            <span class="show-inf-title">学科</span>
                            <textarea id="zz-modify" class="form-control input-typetext"></textarea>
                        </span>
                        <span>
                            <span class="show-inf-title">难度</span>
                            <textarea id="zw-modify" class="form-control input-typetext"></textarea>
                        </span>
                    </div>
                </form>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary">提交更改</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<!---->
<!-- 新建角色列表 -->
<div class="modal fade" id="add_class_modify" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    新建角色
                </h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" role="form">
                <div class="form-group">
                    <label for="role_user_name_modify" class="col-sm-3 control-label">角色名称</label>
                    <div class="col-sm-7">
                        <input type="text" class="form-control" id="role_user_name_modify" placeholder="请输入角色名称">
                    </div>
                </div>
                <div class="form-group">
                    <label for="role_user_des_modify" class="col-sm-3 control-label">角色描述</label>
                    <div class="col-sm-7">
                        <input type="text" class="form-control" id="role_user_des_modify" placeholder="请输角色描述">
                    </div>
                </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" id="save_role_user_modify">
                    创建角色
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<!---->
<!-- 模态框（Modal） -->
<div class="modal fade" mark="这里的id要与调用初的href对应上" id="edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title">
                    修改角色
                </h4>
            </div>
            <div class="modal-body" mark="这里修改为想要的内容即可">
                <form class="form-horizontal" role="form">
                    <div class="form-group">
                        <label  class="col-sm-2 control-label">角色ID (只读)</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control"
                                   placeholder="" readonly id="user_role_id_readonly">
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-sm-2 control-label">角色名</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control"
                                   placeholder="请输入角色名" id="user_role_name">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">角色描述</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control"
                                   placeholder="请输入角色描述" id="user_role_des">
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" id="save_edit">
                    提交更改
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<!-- ↓↓↓引入控件↓↓↓-->
</body>
</html>